<h1>Assistenze
<% if params[:client_id] %>
	<% client = Client.find_by_id(params[:client_id]) %>
	<%= " a " + link_to(client.name_or_society, client) %>
<% end %></h1>
<% unless params[:client_id] %>
	<%= link_to 'Non complete', { :action => "todo", :id => "0" } %> | 
	<%= link_to 'Complete parzialmente', { :action => "todo", :id => "1" } %> | 
	<%= link_to 'Urgenti', { :action => "urgent", :id => "1" } %>
<% else %>
	<%= link_to "Nuova assistenza", { :controller => "assistances", :action => "new", :id => params[:client_id] } %>
<% end %>
<br /><br />
<%= render :partial => 'list', :object => @assistances %>